# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-pyfakefs
_pkgname=${pkgname#py3-}
pkgver=4.5.3
pkgrel=1
pkgdesc="fake file system that mocks the Python file system modules"
options="!check" # flaky tests
url="https://github.com/jmcgeheeiv/pyfakefs/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6f085687e26754c533d05b311097c86324b234513d215cf5ffd93b24cdd48b7383191b54f2819992c2c97db8c04132b429059e1ac27146beca2d6adc60db651b  pyfakefs-4.5.3.tar.gz
"
